package com.hiyee.api.controller.customer;

import com.hiyee.pojo.bo.CustomerLoginBO;
import com.hiyee.pojo.bo.GetSmsCodeBO;
import com.hiyee.response.ResponseJsonResult;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RequestMapping("/auth")
public interface AuthControllerApi {
    /**
     * 获取手机短信验证码
     *
     * @param String scene
     * @return Object
     */
    @PostMapping("/getSmsCode")
    public ResponseJsonResult getSmsCode(@RequestBody @Valid GetSmsCodeBO bo);

    /**
     * 会员登录
     *
     * @param CustomerLoginBO bo
     * @return Object
     */
    @PostMapping("/login")
    public ResponseJsonResult login(@RequestBody @Valid CustomerLoginBO bo);
}
